cmake_minimum_required(VERSION 2.6)
project(pnp)

include_directories("/usr/include/eigen3")

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
link_libraries(${OpenCV_LIBRARY_DIRS})

find_package(Sophus REQUIRED)
include_directories(${SOPHUS_INCLUDE_DIRS})
link_libraries(${SOPHUS_LIBRARY_DIRS})


add_executable(pnp main.cpp)
target_link_libraries(pnp ${OpenCV_LIBS})
target_link_libraries(pnp Sophus::Sophus)

install(TARGETS pnp RUNTIME DESTINATION bin)
